-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Support for enabling metrics in OpenTelemetry Collector #529
feat: Support for enabling metrics in OpenTelemetry Collector #529
Conversation
Signed-off-by: SpiritZhou <[email protected]>
@SpiritZhou it is not needed to release a new chart version. Just add the otel support to resources. We will ship new Charts version during the release. |
# -- Enable KEDA Operator opentelemetry metrics expose | ||
enabled: false | ||
# -- Set OTEL_EXPORTER_OTLP_ENDPOINT for opentelemetry exporter | ||
otlpHTTPEndpoint: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally think it would be better to use opentelemetry.collector.uri
or opentelemetry.collector.uri.http
since this would be the same for all components ond otlp
is not something we should add to the name
@@ -139,6 +143,10 @@ spec: | |||
- name: KEDA_RESTRICT_SECRET_ACCESS | |||
value: {{ .Values.permissions.operator.restrict.secret | quote }} | |||
{{- end }} | |||
{{- if .Values.opentelemetry.operator.otlpHTTPEndpoint }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should only add it, if it's enabled as well
@@ -87,6 +87,10 @@ spec: | |||
- "--webhooks-service-name={{ .Values.webhooks.name }}" | |||
{{- if .Values.prometheus.operator.enabled }} | |||
- --metrics-bind-address=:{{ .Values.prometheus.operator.port }} | |||
- --enable-prometheus-metrics=:{{ .Values.prometheus.operator.enabled }} | |||
{{- end }} | |||
{{- if .Values.opentelemetry.operator.enabled }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it's enabled but no collector URI was specified then we should fail
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Tom Kerkhove <[email protected]>
Signed-off-by: Tom Kerkhove <[email protected]>
Co-authored-by: Tom Kerkhove <[email protected]> Signed-off-by: Tom Kerkhove <[email protected]>
Update a chart helm for new experimental features
Checklist